package secloud

import (
	"errors"
	"github.com/astaxie/beego/validation"
)

func handleValidationErrors(e []*validation.Error) error {
	errStr := ""
	for i := 0; i < len(e); i++ {
		errStr = errStr + e[i].String() + "\n "
	}
	return errors.New(errStr)
}
